// 路由
const express = require('express')
const router = express.Router()

// 首页
const index = require('./common/index')
router.get('/index/getCategory/:id',index.getCategory)
router.get('/index/getCategoryByAddress/:id',index.getCategoryByAddress)
router.get('/index/getCategoryByName/:id',index.getCategoryByName)
router.get('/index/getDetailById/:id',index.getDetailById)

// 导出路由
module.exports=router